<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改管养单位')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-management_unit-edit" th:object="${rdManagementUnit}">
        <input name="id" th:field="*{id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">管养单位
                                ：</label>
                            <div class="col-sm-8">
                                <input name="name" th:field="*{name}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">单位编码
                                ：</label>
                            <div class="col-sm-8">
                                <input name="code" th:field="*{code}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">单位排序
                                ：</label>
                            <div class="col-sm-8">
                                <input name="sort" th:field="*{sort}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">序列号
                                ：</label>
                            <div class="col-sm-8">
                                <input name="serialNumber" th:field="*{serialNumber}" class="form-control"
                                       type="text">
                            </div>
                        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "road/management_unit";
    $("#form-management_unit-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-management_unit-edit').serialize());
        }
    }
</script>
</body>
</html>
